package com.ht.aems.fesmonitor.actions.view;

import com.ht.aems.fesmonitor.BufferDataFrame;
import com.ht.aems.fesmonitor.DirectoryChooser;
import com.ht.aems.swing.util.MyAction;

import java.awt.event.ActionEvent;

/**
 * @version 1.0
 * @author: YanXue
 * Date: 2010-7-28 Time: 16:58:12
 */
public class ChooseDirectory extends MyAction {
    public void actionPerformed(ActionEvent e) {
        //FesMonitor monitor = (FesMonitor) this.getAncestor();
        //DirectoryChooser ch = new DirectoryChooser();
        DirectoryChooser.showDialog();
//        String path = DirectoryChooser.showDialog();
//        if (path != null)
//            BufferDataFrame.prefs.put(BufferDataFrame.AUTO_SAVE_PATH, path);
    }
}
